package judesart.app.domain;

@SuppressWarnings("deprecation")
public class Project_FieldSerializer {
  private static native java.lang.Long getArtistId(judesart.app.domain.Project instance) /*-{
    return instance.@judesart.app.domain.Project::artistId;
  }-*/;
  
  private static native void  setArtistId(judesart.app.domain.Project instance, java.lang.Long value) /*-{
    instance.@judesart.app.domain.Project::artistId = value;
  }-*/;
  
  private static native java.util.List getArtworks(judesart.app.domain.Project instance) /*-{
    return instance.@judesart.app.domain.Project::artworks;
  }-*/;
  
  private static native void  setArtworks(judesart.app.domain.Project instance, java.util.List value) /*-{
    instance.@judesart.app.domain.Project::artworks = value;
  }-*/;
  
  private static native java.lang.String getDescription(judesart.app.domain.Project instance) /*-{
    return instance.@judesart.app.domain.Project::description;
  }-*/;
  
  private static native void  setDescription(judesart.app.domain.Project instance, java.lang.String value) /*-{
    instance.@judesart.app.domain.Project::description = value;
  }-*/;
  
  private static native java.lang.Long getId(judesart.app.domain.Project instance) /*-{
    return instance.@judesart.app.domain.Project::id;
  }-*/;
  
  private static native void  setId(judesart.app.domain.Project instance, java.lang.Long value) /*-{
    instance.@judesart.app.domain.Project::id = value;
  }-*/;
  
  private static native java.util.List getNotes(judesart.app.domain.Project instance) /*-{
    return instance.@judesart.app.domain.Project::notes;
  }-*/;
  
  private static native void  setNotes(judesart.app.domain.Project instance, java.util.List value) /*-{
    instance.@judesart.app.domain.Project::notes = value;
  }-*/;
  
  private static native java.util.List getPhotos(judesart.app.domain.Project instance) /*-{
    return instance.@judesart.app.domain.Project::photos;
  }-*/;
  
  private static native void  setPhotos(judesart.app.domain.Project instance, java.util.List value) /*-{
    instance.@judesart.app.domain.Project::photos = value;
  }-*/;
  
  private static native java.util.List getSketchs(judesart.app.domain.Project instance) /*-{
    return instance.@judesart.app.domain.Project::sketchs;
  }-*/;
  
  private static native void  setSketchs(judesart.app.domain.Project instance, java.util.List value) /*-{
    instance.@judesart.app.domain.Project::sketchs = value;
  }-*/;
  
  private static native java.lang.String getTitle(judesart.app.domain.Project instance) /*-{
    return instance.@judesart.app.domain.Project::title;
  }-*/;
  
  private static native void  setTitle(judesart.app.domain.Project instance, java.lang.String value) /*-{
    instance.@judesart.app.domain.Project::title = value;
  }-*/;
  
  public static void deserialize(com.google.gwt.user.client.rpc.SerializationStreamReader streamReader, judesart.app.domain.Project instance) throws com.google.gwt.user.client.rpc.SerializationException{
    setArtistId(instance, (java.lang.Long) streamReader.readObject());
    setArtworks(instance, (java.util.List) streamReader.readObject());
    setDescription(instance, streamReader.readString());
    setId(instance, (java.lang.Long) streamReader.readObject());
    setNotes(instance, (java.util.List) streamReader.readObject());
    setPhotos(instance, (java.util.List) streamReader.readObject());
    setSketchs(instance, (java.util.List) streamReader.readObject());
    setTitle(instance, streamReader.readString());
    
  }
  
  public static native judesart.app.domain.Project instantiate(com.google.gwt.user.client.rpc.SerializationStreamReader streamReader) throws com.google.gwt.user.client.rpc.SerializationException/*-{
    return @judesart.app.domain.Project::new()();
  }-*/;
  
  public static void serialize(com.google.gwt.user.client.rpc.SerializationStreamWriter streamWriter, judesart.app.domain.Project instance) throws com.google.gwt.user.client.rpc.SerializationException {
    streamWriter.writeObject(getArtistId(instance));
    streamWriter.writeObject(getArtworks(instance));
    streamWriter.writeString(getDescription(instance));
    streamWriter.writeObject(getId(instance));
    streamWriter.writeObject(getNotes(instance));
    streamWriter.writeObject(getPhotos(instance));
    streamWriter.writeObject(getSketchs(instance));
    streamWriter.writeString(getTitle(instance));
    
  }
  
}
